<?php

namespace App\Livewire;

use Livewire\Component;
use App\Models\Component as ComponentModel;

class ComponentDetail extends Component
{
    public $component;

    public $id;

    public function mount($id)
    {
        $this->component = ComponentModel::findOrFail($id);
    }
    public function render()
    {
        return view('livewire.component-detail');
    }
}
